.class Lcom/burstly/lib/currency/request/CurrencyRequester$3;
.super Ljava/lang/Object;
.source "CurrencyRequester.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/burstly/lib/currency/request/CurrencyRequester;->requestBalanceReset(Lcom/burstly/lib/currency/AccountInfo;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field volatile mResetFinished:Z

.field final synthetic this$0:Lcom/burstly/lib/currency/request/CurrencyRequester;

.field final synthetic val$info:Lcom/burstly/lib/currency/AccountInfo;


# direct methods
.method constructor <init>(Lcom/burstly/lib/currency/request/CurrencyRequester;Lcom/burstly/lib/currency/AccountInfo;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 148
    iput-object p1, p0, Lcom/burstly/lib/currency/request/CurrencyRequester$3;->this$0:Lcom/burstly/lib/currency/request/CurrencyRequester;

    iput-object p2, p0, Lcom/burstly/lib/currency/request/CurrencyRequester$3;->val$info:Lcom/burstly/lib/currency/AccountInfo;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 4

    .prologue
    .line 155
    :try_start_0
    iget-object v0, p0, Lcom/burstly/lib/currency/request/CurrencyRequester$3;->this$0:Lcom/burstly/lib/currency/request/CurrencyRequester;

    iget-object v0, v0, Lcom/burstly/lib/currency/request/CurrencyRequester;->mResetLock:Ljava/util/concurrent/locks/Lock;

    invoke-interface {v0}, Ljava/util/concurrent/locks/Lock;->lock()V

    .line 156
    iget-object v0, p0, Lcom/burstly/lib/currency/request/CurrencyRequester$3;->this$0:Lcom/burstly/lib/currency/request/CurrencyRequester;

    iget-object v0, v0, Lcom/burstly/lib/currency/request/CurrencyRequester;->mUIHandler:Landroid/os/Handler;

    new-instance v1, Lcom/burstly/lib/currency/request/CurrencyRequester$3$1;

    iget-object v2, p0, Lcom/burstly/lib/currency/request/CurrencyRequester$3;->val$info:Lcom/burstly/lib/currency/AccountInfo;

    iget-object v3, p0, Lcom/burstly/lib/currency/request/CurrencyRequester$3;->this$0:Lcom/burstly/lib/currency/request/CurrencyRequester;

    iget-object v3, v3, Lcom/burstly/lib/currency/request/CurrencyRequester;->mListeners:Ljava/util/List;

    invoke-direct {v1, p0, v2, v3}, Lcom/burstly/lib/currency/request/CurrencyRequester$3$1;-><init>(Lcom/burstly/lib/currency/request/CurrencyRequester$3;Lcom/burstly/lib/currency/AccountInfo;Ljava/util/List;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 170
    :goto_0
    iget-boolean v0, p0, Lcom/burstly/lib/currency/request/CurrencyRequester$3;->mResetFinished:Z

    if-nez v0, :cond_0

    .line 171
    iget-object v0, p0, Lcom/burstly/lib/currency/request/CurrencyRequester$3;->this$0:Lcom/burstly/lib/currency/request/CurrencyRequester;

    iget-object v0, v0, Lcom/burstly/lib/currency/request/CurrencyRequester;->mResetLockCondition:Ljava/util/concurrent/locks/Condition;

    invoke-interface {v0}, Ljava/util/concurrent/locks/Condition;->awaitUninterruptibly()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_0

    .line 175
    :catchall_0
    move-exception v0

    iget-object v1, p0, Lcom/burstly/lib/currency/request/CurrencyRequester$3;->this$0:Lcom/burstly/lib/currency/request/CurrencyRequester;

    iget-object v1, v1, Lcom/burstly/lib/currency/request/CurrencyRequester;->mResetLock:Ljava/util/concurrent/locks/Lock;

    invoke-interface {v1}, Ljava/util/concurrent/locks/Lock;->unlock()V

    throw v0

    :cond_0
    iget-object v0, p0, Lcom/burstly/lib/currency/request/CurrencyRequester$3;->this$0:Lcom/burstly/lib/currency/request/CurrencyRequester;

    iget-object v0, v0, Lcom/burstly/lib/currency/request/CurrencyRequester;->mResetLock:Ljava/util/concurrent/locks/Lock;

    invoke-interface {v0}, Ljava/util/concurrent/locks/Lock;->unlock()V

    .line 178
    return-void
.end method
